@SET FEATURESDIR="%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES"
@SET STSADM="%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe"
@SET GACUTIL="%ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe"

Echo Installing ConfigurationUtility in GAC
%GACUTIL% -u EAT.ConfigurationUtility
%GACUTIL% /i bin\debug\EAT.ConfigurationUtility.dll /f

Echo Copying source files to WSS \TEMPLATE directory
xcopy /e /y /i FEATURES\* %FEATURESDIR%

Echo Installing feature with WSS
%STSADM% -o installfeature -filename ConfigurationUtility\feature.xml -force

Echo Restarting IIS worker process
IISRESET
